import request from "../utils/request.js"

export default {
	//获取轮播图
	getCarousel(params){
		return request('/carousel/list','Get')
	},
	//获取精选博文
	getSelectBlog(params){
		return request('/blog/select','POST')
	},
	//获取文章详情
	getBlogDetail(params){
		return request('/blog/detail','POST','',params)
	},
	//点赞
	likeBlog(params){ 
		return request('/blog/like','POST','',params)
	},
	//获取文章评论
	getComment(params){
		return request('/blogcomment/list','POST','',params)
	},
	//发表评论
	addComment(params){
		return request('/blogcomment/add','POST','',params)
	},
	//获取菜单tab
	getTabList(params){
		return request('/menu/list','POST','',params)
	},
	//获取博客列表
	getBlog(params){
		return request('/blog/list','POST','',params)
	},
	//模糊查询博客
	getBlogSearch(params){
		return request('/blog/search','POST','',params)
	},
}